
package net.swa.dewei.service;

import net.swa.dewei.beans.entity.Advertisement;
import net.swa.util.JsonResult;

/**
 * 广告信息service接口
 * @author junyu
 *
 */
public interface AdService
{

    Advertisement queryById(Long id);

    //根据条件查询分页
    JsonResult<Advertisement> queryPage(String[] attrNames , String[] attrOperator , Object[] attrValues ,
            int currentPage , int pageSize , String orderBy , String orderType);

    boolean add(Advertisement model);

    boolean update(Advertisement model);

    void delete(Long[] ids);

}